package com.zlq.cn.controller;


import com.zlq.cn.api.SignApiResult;
import com.zlq.cn.entity.ZhCommonWords;
import com.zlq.cn.entity.ZhTibetanDict;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import com.zlq.cn.service.un.ZhCommonWordsService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 藏文常用词 前端控制器
 * </p>
 *
 * @author zhoucl
 * @since 2024-05-06
 */
@Api(tags = "公共-中文藏文常用")
@RestController
@RequestMapping("/api/common/zh/common/words")
public class ZhCommonWordsController {

    @Resource
    private ZhCommonWordsService zhCommonWordsService;

    @ApiOperation("所有数据")
    @GetMapping("/list")
    public SignApiResult<List<ZhCommonWords>> list() {
        return SignApiResult.resultSuccess(zhCommonWordsService.list());
    }
}

